Skip to content

Add an option to only use brokers that are present in Zookeeper#46

Open
conniec wants to merge 4 commits intolinkedin:masterfrom
conniec:use-active-brokers
Open

Add an option to only use brokers that are present in Zookeeper#46
conniec wants to merge 4 commits intolinkedin:masterfrom
conniec:use-active-brokers

Conversation

@conniec
Copy link
Copy Markdown

@conniec conniec commented Aug 5, 2016

When we use the remove action in the tools to transfer partitions off a dead broker, the partitions get assigned to all brokers in cluster.brokers if -t is not specified.

However, if some of our topics is in a bad state (ie. some of the brokers in the ISR are dead), those dead brokers also get added to cluster.brokers and the partitions can potentially be assigned to them in the tool. This will cause the reassignment to fail.

I would like to propose adding a flag that controls which brokers are added to the cluster in the initial setup, and use the Zookeeper broker config as the source of truth. I don't have context on why we would want to add potentially dead brokers, but this allows us to keep both scenarios.

jean0313 added a commit to jean0313/kafka-tools that referenced this pull request Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant